﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="XbdSoft.WPFVersion.ConfigurationWindow"
	x:Name="Window"  FontSize="12"
    xmlns:effect="clr-namespace:XbdSoft.WPFVersion.Effect"
   effect:GlassEffect.IsEnabled="True"
	Title="下载设置" ShowInTaskbar="False"
    WindowStartupLocation="CenterScreen" ResizeMode="NoResize"
	Width="400" Height="240" Loaded="Window_Loaded">

    <Grid x:Name="LayoutRoot"> 
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="35"></RowDefinition>
            <RowDefinition Height="35"></RowDefinition>
            <RowDefinition Height="35"></RowDefinition>
            <RowDefinition Height="35"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid Grid.Row="1" VerticalAlignment="Center" >
            <Label Content="文件保存路径：" Height="23" HorizontalAlignment="Left" Margin="16,0,258,0" Name="label1" />
                <TextBox Name="SaveFilePathTextBox" Height="23" Margin="118,0,80,0"  Width="180"/>
                <Button Content="..." Height="23" HorizontalAlignment="Left" Margin="324,0,0,0" Name="SelectFolderButton" Width="36" Click="SelectFolderButton_Click" />
        </Grid>
        <Grid Grid.Row="2" VerticalAlignment="Center" >
            <Label Content="并发下载上限：" Height="28" Margin="16,0,258,0" Name="label2"  />
            <ComboBox Height="23" HorizontalAlignment="Left" Margin="119,0,0,0" Name="MaxDownloadNumComboBox"   Width="187">
            </ComboBox>            
        </Grid>
        <Grid Grid.Row="3" VerticalAlignment="Center"></Grid>
        <Button Content="确定" Height="23" HorizontalAlignment="Left" Margin="45,0,0,12" Name="SaveButton" Click="SaveButton_Click" Width="75" Grid.Row="4">
            <Button.Background>
                <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                    <GradientStop Color="#FFCDCDCD" Offset="0" />
                    <GradientStop Color="#FFEBEBEB" Offset="0.004" />
                    <GradientStop Color="#FFEFA54A" Offset="0.543" />
                    <GradientStop Color="#FFF9D6AA" Offset="1" />
                    <GradientStop Color="#FFF9D6AA" />
                </LinearGradientBrush>
            </Button.Background>
        </Button>
        <Button Content="取消" Height="23" HorizontalAlignment="Right" Margin="0,0,117,12" Name="CancelButton" Click="CancelButton_Click" Width="75" Grid.Row="4">
            <Button.Background>
                <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                    <GradientStop Color="#FFCDCDCD" Offset="0" />
                    <GradientStop Color="#FFEBEBEB" Offset="0.004" />
                    <GradientStop Color="#FFEFA54A" Offset="0.543" />
                    <GradientStop Color="#FFF9D6AA" Offset="1" />
                    <GradientStop Color="#FFF9D6AA" />
                </LinearGradientBrush>
            </Button.Background>
        </Button>
        <CheckBox Grid.Row="3" Height="16" HorizontalAlignment="Left" Margin="119,2,0,0" Name="AutoStartCheckBox" VerticalAlignment="Top" FlowDirection="RightToLeft" />
        <TextBlock Grid.Row="3" Height="23" HorizontalAlignment="Left" Margin="24,1,0,0" Name="textBlock1" Text="开机启动：" VerticalAlignment="Top" SnapsToDevicePixels="True" />
    </Grid>
</Window>